package linter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import linter.POJO.DO.Likes;
import org.apache.ibatis.annotations.Param;

/**
* @author 北煜
* @description 针对表【likes(点赞情况表)】的数据库操作Mapper
* @createDate 2024-03-15 11:18:48
* @Entity linter.POJO.DO.Likes
*/
public interface LikesMapper extends BaseMapper<Likes> {

    /**
     * @param uuid 点赞用户ID
     * @param postsId 被点赞的文章ID
     * @return 返回点赞成功与否
     */
    int updateLikeByUuid(@Param("uuid") Long uuid, @Param("postsId") Integer postsId);

    /**
     * @param uuid 用户Id
     * @return 返回点赞成功与否
     */
    Integer selUuidLikes(@Param("uuid") Long uuid, @Param("postsId") Integer postsId);
}




